import com.yh.entity.Books;
import com.yh.services.IBookService;
import com.yh.services.impl.BookServiceImpl;
import org.junit.Test;

import java.util.List;

public class Demo {
    @Test
    public void test1(){
        IBookService ibs=new BookServiceImpl();
        List<Books> b=ibs.showAllByPubl("河");
        for (Books i:b) {
            System.out.println(i.getBname());
        }
    }
}
